/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pro.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.pro.entity.BasBuilding;
import com.thinkgem.jeesite.modules.pro.dao.BasBuildingDao;

/**
 * 楼栋管理Service
 * @author dby
 * @version 2020-10-15
 */
@Service
@Transactional(readOnly = true)
public class BasBuildingService extends CrudService<BasBuildingDao, BasBuilding> {

	public BasBuilding get(String id) {
		return super.get(id);
	}
	
	public List<BasBuilding> findList(BasBuilding basBuilding) {
		return super.findList(basBuilding);
	}
	
	public Page<BasBuilding> findPage(Page<BasBuilding> page, BasBuilding basBuilding) {
		return super.findPage(page, basBuilding);
	}
	
	@Transactional(readOnly = false)
	public void save(BasBuilding basBuilding) {
		super.save(basBuilding);
	}
	
	@Transactional(readOnly = false)
	public void delete(BasBuilding basBuilding) {
		super.delete(basBuilding);
	}


	public List<BasBuilding> findSelectForCorridor(){
		return dao.findSelectForCorridor();
	}

    public int findBuildingNumber(BasBuilding basBuilding) {
		return dao.findBuildingNumber(basBuilding);
    }
}